package com.efast.cafe.portal.remote.company;

import java.util.List;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.feign.constant.FeignConstant;
import com.efast.cafe.portal.entity.company.PortalCompanyRole;



/**
 * 企业角色接口服务
 * 
 * @author xuanming.feng
 *
 */
@FeignClient(name = "cafe.portal-service",path="/cafe.portal-service")
public interface PortalCompanyRoleService {

	/**
	 * 
	    * @Title: queryRoleByUser
	    * @Description: 获取用户的角色列表
	    * @param @param companyCode
	    * @param @param username
	    * @param @return    参数
	    * @return List<PortalCompanyRole>    返回类型
	    * @throws
	 */
	@RequestMapping(value = FeignConstant.Scope.FEIGN_SCOPE_PV+"/portal/company/queryRoleByUser",method=RequestMethod.POST)
	public  List<PortalCompanyRole> queryRoleByUser(@RequestParam("companyCode")String companyCode, @RequestParam("username")String username);
}
